package net.wangds.persistence.def.repo.db;

import net.wangds.jpa.repository.RemovableRepo;
import net.wangds.persistence.def.entity.DictFieldEntity;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * 字段字典表的操作接口.
 * <p></p>
 *
 * @author 王东石 2020/10/30 17:55.
 */
@Repository
public interface DictFieldRepo extends RemovableRepo<DictFieldEntity> {

    List<DictFieldEntity> findBySchemanameAndTablename(String schema, String tn, Sort seq);

    Optional<DictFieldEntity> findBySchemanameAndTablenameAndFieldname(String schema, String tn, String fn);


}
